package com.tjetc.mapper;

import com.tjetc.domain.Newborn;
import com.tjetc.domain.Vaccine;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VaccineMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Vaccine record);

    int insertSelective(Vaccine record);

    Vaccine selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Vaccine record);

    int updateByPrimaryKey(Vaccine record);

    List<Vaccine> getVaccineList();

    Vaccine getVaccineByName(String name);

    List<Vaccine> getVaccineByQuantity(int i);//获取库存小于i的疫苗

    List<Vaccine> getVaccineByNewBornId(int id);//根据新生儿id获取疫苗

    List<Newborn> getListAll();

    @Select("select * from vaccine")
    List<Vaccine> list();
}